using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class Cust
    {
        public Cust()
        {
            this.admisions = new List<admision>();
            this.admisions1 = new List<admision>();
            this.admisions2 = new List<admision>();
            this.Agings = new List<Aging>();
            this.Ars = new List<Ar>();
            this.Arbatches = new List<Arbatch>();
            this.Armemoes = new List<Armemo>();
            this.Contacts = new List<Contact>();
            this.ItemMatchingCodes = new List<ItemMatchingCode>();
            this.GuarantorContracts = new List<GuarantorContract>();
            this.Images = new List<Image>();
            this.medicals = new List<medical>();
            this.Payments = new List<Payment>();
            this.Ps = new List<P>();
            this.PSPayments = new List<PSPayment>();
            this.requests = new List<request>();
            this.Shiptoes = new List<Shipto>();
        }

        public int IID { get; set; }
        public string ID { get; set; }
        public string CUSTSRH { get; set; }
        public string COMPANY { get; set; }
        public string ADDR1 { get; set; }
        public string ADDR2 { get; set; }
        public string CITY { get; set; }
        public string STATE { get; set; }
        public string ZIP { get; set; }
        public Nullable<bool> LATE { get; set; }
        public string CONTACT { get; set; }
        public string PHONE { get; set; }
        public Nullable<bool> TAXABLE { get; set; }
        public string TAXAUTH { get; set; }
        public Nullable<bool> FEDTAX { get; set; }
        public string FAX { get; set; }
        public Nullable<double> CREDITLMT { get; set; }
        public string TERMS { get; set; }
        public Nullable<bool> ONACCOUNT { get; set; }
        public string GROUPS { get; set; }
        public Nullable<bool> CREDITHOLD { get; set; }
        public string PRICE_CODE { get; set; }
        public Nullable<System.DateTime> DATEADDED { get; set; }
        public Nullable<System.DateTime> LASTSALE { get; set; }
        public string TAXID { get; set; }
        public string REGION { get; set; }
        public string FIRST_NM { get; set; }
        public string LAST_NM { get; set; }
        public string FATHER_NM { get; set; }
        public Nullable<int> ID_TYPE { get; set; }
        public string ID_NO { get; set; }
        public string GENDER { get; set; }
        public string POBIRTH { get; set; }
        public Nullable<short> PAT_STATUS { get; set; }
        public Nullable<bool> CURRENT { get; set; }
        public Nullable<bool> OUTPATIENT { get; set; }
        public string ARACCT { get; set; }
        public Nullable<short> CURRENCY { get; set; }
        public Nullable<System.DateTime> BDATE { get; set; }
        public byte TYPE { get; set; }
        public Nullable<double> DISCOUNT { get; set; }
        public Nullable<int> PCODE { get; set; }
        public Nullable<short> PYMT_TERMS { get; set; }
        public string SALUTATION { get; set; }
        public string ASALUTA { get; set; }
        public string AFIRST_NM { get; set; }
        public string ALAST_NM { get; set; }
        public string AFATHER { get; set; }
        public string SSCODE { get; set; }
        public string DLNUMBER { get; set; }
        public string WORK_PH1 { get; set; }
        public string WORK_PH2 { get; set; }
        public string MOBILE { get; set; }
        public string PAGER { get; set; }
        public string PO_BOX { get; set; }
        public Nullable<byte> TRADETYPE { get; set; }
        public string AGREEMENTNUM { get; set; }
        public Nullable<short> NATIONALITY { get; set; }
        public Nullable<System.DateTime> AGREEMENTDATE { get; set; }
        public short SALESMAN { get; set; }
        public Nullable<short> STORE { get; set; }
        public Nullable<byte> MARITALSTATUS { get; set; }
        public string SPOUSENAME { get; set; }
        public string File_Primary_Key { get; set; }
        public Nullable<System.Guid> msrepl_tran_version { get; set; }
        public string NOTES { get; set; }
        public Nullable<bool> ISMASTER { get; set; }
        public string CaseNb { get; set; }
        public Nullable<short> siteID { get; set; }
        public string PcPhysician { get; set; }
        public Nullable<System.DateTime> Replication_TimeStamp { get; set; }
        public Nullable<System.DateTime> CreationDate { get; set; }
        public bool Checkin_outpat { get; set; }
        public string OCCUPAT { get; set; }
        public string EMP { get; set; }
        public string MISC_CODE { get; set; }
        public string ANAME { get; set; }
        public string EMAIL { get; set; }
        public Nullable<bool> ACTIVE { get; set; }
        public string MOTHER { get; set; }
        public string AMOTHER { get; set; }
        public Nullable<int> FRPhysician { get; set; }
        public bool Pedo { get; set; }
        public Nullable<System.DateTime> Lastupdate { get; set; }
        public string firstenteredasinoutpatient { get; set; }
        public Nullable<double> Age { get; set; }
        public Nullable<byte> vip { get; set; }
        public string EmployerNb { get; set; }
        public string GrandFather_nm { get; set; }
        public string AGrandFather_nm { get; set; }
        public string Bloodgroup { get; set; }
        public string allergies { get; set; }
        public string height { get; set; }
        public string weight { get; set; }
        public string BillingAddress { get; set; }
        public string DeliveryAddress { get; set; }
        public Nullable<int> MasterID { get; set; }
        public Nullable<int> AddUser { get; set; }
        public Nullable<byte> DoNotCollectPhysFees { get; set; }
        public Nullable<System.DateTime> PhysFeesSepDate { get; set; }
        public byte[] photo { get; set; }
        public byte[] scratch { get; set; }
        public Nullable<byte> DefClaimDiscountType { get; set; }
        public Nullable<bool> Cust_AcctAssigned { get; set; }
        public Nullable<int> Cust_Area { get; set; }
        public string CUST_SOS_Contact { get; set; }
        public string Cust_Reference { get; set; }
        public string Cust_AcademicYear { get; set; }
        public string Cust_Staffnb { get; set; }
        public Nullable<int> CUST_Mouhafaza { get; set; }
        public Nullable<int> CUST_Kadaa { get; set; }
        public string CUST_Street { get; set; }
        public string CUST_Building { get; set; }
        public string CUST_Floor { get; set; }
        public Nullable<int> CUST_Mother_Nationality { get; set; }
        public Nullable<int> CUST_SOS_Village { get; set; }
        public string CUST_SOS_Street { get; set; }
        public string CUST_SOS_Building { get; set; }
        public string CUST_SOS_Floor { get; set; }
        public string CUST_SOS_Phone { get; set; }
        public Nullable<double> Cust_GuarDisc { get; set; }
        public Nullable<System.DateTime> CUST_ID_DATE { get; set; }
        public Nullable<int> CUST_ID_SOURCE { get; set; }
        public string CUST_SOS_REL { get; set; }
        public Nullable<int> CUST_WIVES { get; set; }
        public virtual Acct Acct { get; set; }
        public virtual ICollection<admision> admisions { get; set; }
        public virtual ICollection<admision> admisions1 { get; set; }
        public virtual ICollection<admision> admisions2 { get; set; }
        public virtual ICollection<Aging> Agings { get; set; }
        public virtual ICollection<Ar> Ars { get; set; }
        public virtual ICollection<Arbatch> Arbatches { get; set; }
        public virtual ICollection<Armemo> Armemoes { get; set; }
        public virtual ICollection<Contact> Contacts { get; set; }
        public virtual ICollection<ItemMatchingCode> ItemMatchingCodes { get; set; }
        public virtual id_type id_type1 { get; set; }
        public virtual Nationality Nationality1 { get; set; }
        public virtual Salesman Salesman1 { get; set; }
        public virtual Store Store1 { get; set; }
        public virtual ICollection<GuarantorContract> GuarantorContracts { get; set; }
        public virtual ICollection<Image> Images { get; set; }
        public virtual ICollection<medical> medicals { get; set; }
        public virtual ICollection<Payment> Payments { get; set; }
        public virtual ICollection<P> Ps { get; set; }
        public virtual ICollection<PSPayment> PSPayments { get; set; }
        public virtual Refund Refund { get; set; }
        public virtual ICollection<request> requests { get; set; }
        public virtual ICollection<Shipto> Shiptoes { get; set; }
    }
}
